<?php

use \App\HttpController\Router;

//前台
Router::group(['prefix'=>'bobo','namespace'=>'Applet\Bobo'],function (){
    Router::post('login', 'AuthController');
    Router::group(['prefix'=>'video'],function (){
        Router::get('', 'IndexController');//视频列表
        Router::get('info', 'IndexController/info');//视频详情
        Router::get('list', 'IndexController/randList');//视频详情列表
        Router::get('banner', 'IndexController/getBanner');//视频轮播
    });
    Router::get('wechat', 'IndexController/wechatLink');//公众号链接
    Router::post('form', 'IndexController/formId');//收集模板消息的formid
    Router::get('config','IndexController/config');
    //预定
    Router::group(['prefix'=>'reserve'],function (){
        Router::get('', 'IndexController/reserve');//获取预约状态
        Router::post('update', 'IndexController/reserveUpdate');//更新预约状态
    });
});
